package com.woniu.utils;

import org.apache.shiro.crypto.hash.Md5Hash;

import javax.crypto.interfaces.PBEKey;

/**
 * @author Rain
 * @Description : 加密算法
 * @date 2022/09/08 15:13
 */
    public class SecurityCryUtil {
        private static final String SALT_VALUE = "woniu";

        public static String generateEncryptedPassword(String oldPassword, String salt){
            return new Md5Hash(oldPassword,salt + SALT_VALUE).toString();
        }

    }
